package bat.iog.FTP.sever.demo1;//package iog.FTP.sever.demo1;
//
//
//import org.apache.commons.net.ftp.FTPClient;
//
//public class FTPEventListener implements FTPListener{
//    @Override
//    public void onConnect(FTPClient ftpClient, String server, int port) {
//        System.out.println("Connected to server: " + server + " on port: " + port);
//    }
//
//    @Override
//    public void onLogin(FTPClient ftpClient, String username, String password) {
//        System.out.println("Logged in with username: " + username);
//    }
//
//    @Override
//    public void onFileUpload(FTPClient ftpClient, String remoteFilePath, String localFilePath) {
//        System.out.println("File uploaded from: " + localFilePath + " to: " + remoteFilePath);
//    }
//
//    @Override
//    public void onFileDownload(FTPClient ftpClient, String remoteFilePath, String localFilePath) {
//        System.out.println("File downloaded from: " + remoteFilePath + " to: " + localFilePath);
//    }
//
//    @Override
//    public void onLogout(FTPClient ftpClient) {
//        System.out.println("User logged out");
//    }
//
//    @Override
//    public void onConnectionFailed(FTPConnectionEvent event) {
//        System.out.println("Connection failed");
//    }
//}
